home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Magazine / Online / wu-ftpd / Install_FTPD < prev    next >
Encoding:
Text File  |  2001-07-23  |  1.9 KB  |  78 lines

  1. ; Installer script for wu-ftpd
  2. ; $VER: Install_FTPD 1.1 (25.2.95)
  3.  
  4. ; modified by Neil Bothwick to account for Miami users too
  5.  
  6. ; No default destination
  7. (set @default-dest "")
  8.  
  9. ; Test if user has at least Kickstart and Workbench 2.0
  10. (if (< (/ (getversion "LIBS:version.library") 65536) 37)
  11.     (set doabort 1)
  12. )
  13. (if (< (/ (getversion) 65536) 37)
  14.     (set doabort 1)
  15. )
  16. (if doabort
  17.     (abort "You need Kickstart and Workbench 2.0 or higher to install this FTP server. Sorry.")
  18. )
  19.  
  20. ; Is AmiTCP 3.0 or Miami installed?
  21. (if (AND
  22.         (NOT (exists "AmiTCP:libs/usergroup.library" (noreq)))
  23.         (NOT (exists "Miami:" (noreq)))
  24.     )
  25.     (abort "You need Miami or AmiTCP 3.0 or higher to use this FTP server. Sorry.")
  26. )
  27.  
  28. ; Show welcome message
  29. (welcome)
  30.  
  31. ; Copy the FTP server
  32. (copyfiles
  33.     (prompt "Copy FTP daemon?")
  34.     (help "The FTP daemon is the heart of the FTP server, if you don't copy this you won't be able to use the server.")
  35.     (source "bin/ftpd")
  36.     (dest "AmiTCP:serv")
  37.     (confirm)
  38. )
  39.  
  40. (complete 30)
  41.  
  42. ; Copy utilities
  43. (copyfiles
  44.     (prompt "Copy ftpshut utility?")
  45.     (help "The ftpshut command is used to shutdown the FTP server.")
  46.     (source "bin/ftpshut")
  47.     (dest "AmiTCP:bin")
  48.     (confirm)
  49. )
  50.  
  51. (complete 60)
  52.  
  53. (copyfiles
  54.     (prompt "Copy ftpcount utility?")
  55.     (help "The ftpcount command is used to count the number of users that are currently using the FTP server.")
  56.     (source "bin/ftpcount")
  57.     (dest "AmiTCP:bin")
  58.     (confirm)
  59. )
  60.  
  61. (complete 80)
  62.  
  63. ; Copy configuration files
  64. (if (NOT (exists "AmiTCP:db/ftpaccess" (noreq)))
  65.     (copyfiles
  66.         (prompt "Copy example configuration files?")
  67.         (help "This are only example configuration files. You will need to change them. See the wu-ftp.guide on how to do this.")
  68.         (source "examples")
  69.         (dest "AmiTCP:db")
  70.         (all)
  71.         (confirm)
  72.     )
  73. )
  74.  
  75. (complete 100)
  76.  
  77. (exit "You should now change the file AmiTCP:db/ftpaccess and add some lines to your AmiTCP:db/inetd.conf file. You should also setup your ftp accounts. For more information see the supplied wu-ftp.guide documentation file.")
  78.